package com.brightfuture.chrms.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 岗位信息
 *
 * @author victor
 * @date 2024-02-04 22:31:50
 */
@Data
@TableName("position_standard")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "position_standard")
public class PositionStandardEntity extends Model<PositionStandardEntity> {

    /**
     * 岗位标准ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "岗位标准ID")
    private Long posStdId;
    /**
     * 岗位ID
     */
    @Schema(description = "岗位ID")
    private Long positionId;
    /**
     * 标准名称
     */
    @Schema(description = "标准名称")
    private String name;
    /**
     * 标准金额
     */
    @Schema(description = "标准金额")
    private BigDecimal money;
    /**
     * 当前状态
     */
    @Schema(description = "当前状态")
    private String state;
    /**
     * 开始日期
     */
    @Schema(description = "开始日期")
    private LocalDateTime beginDate;
    /**
     * 结束日期
     */
    @Schema(description = "结束日期")
    private LocalDateTime endDate;
    /**
     * 租户号
     */
    @Schema(description = "租户号")
    private Long tenantId;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private Long createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private Long updateBy;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 删除标识
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "删除标识")
    private String delFlag;
}
